<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
  	<p>
  		海事测试用邮件发送程序,可以指定邮件服务器所使用的发送邮件端口号(默认为25,若指定其它端口号需邮件服务器开放才可).<br/>
  		请填写完整下面各项信息,测试程序内部不再做非空判断.<br/>
  		<b>
  			注:发送过程中如果速度慢,可能是我在调试端口信息等等.
  		</b>
  	</p>
  	<hr size="1" noshade="noshade" style="border:1px #cccccc dashed;"/>
    <form name="emailForm" action="email" method="post">
    	<table>
    		<tr>
    			<td>smtp地址:</td>
    			<td><input type="text" name="smtp" value="smtp.163.com"/></td>
    		</tr>
    		<tr>
    			<td>smtp端口:</td>
    			<td><input type="text" name="port" value="25"/></td>
    		</tr>
    		<tr>
    			<td>邮件用户名(完整邮件地址):</td>
    			<td><input type="text" name="account"/></td>
    		</tr>
    		<tr>
    			<td>密码:</td>
    			<td><input type="password" name="password"/></td>
    		</tr>
    		<tr>
    			<td>发送给:</td>
    			<td><input type="text" name="to"/></td>
    		</tr>
    		<tr>
    			<td>主题:</td>
    			<td><input type="text" name="subject" value="这是测试邮件,您无需查看即可删除它"/></td>
    		</tr>
    		<tr>
    			<td>内容:</td>
    			<td>
    				<textarea name="content" cols="40" rows="7">这是测试邮件,请不要回复...</textarea>
    			</td>
    		</tr>
    		<tr>
    			<td colspan="2" align="center">
    				<input type="submit" value="发送"/>
    				<input type="reset" value="重置"/>
    			</td>
    		</tr>
    	</table>
    </form>
  </body>
</html>
